Add Traffic Lighting Rules

Set conditional formatting rules to apply traffic light colors to your data.

Tip: Watch this video to learn how to add traffic lighting to your visual.

Note:  

  • Traffic lighting can be added to the following visual types:

    • Breakdown
    • Trend (with no groupings)
    • Trend breakdown (with no groupings)
    • Table (with one metric)
  • The following limitations exist when adding traffic lighting to the Table visual:

    • A custom time period can not be set when using the Change in metric value rule type. You can only use the Same period, previous year or Previous period presets.
  1. Click the Traffic light button on the Visual Actions menu.

  2. Click Add new rule in the Traffic light panel.

    Note: If available, you can also start with a suggested traffic light rule. Suggested rules are configured by your administrator. For more information, see Configure Suggested Traffic Lighting Rules.

  3. Select one of the following rule types:

    Note: The following table uses the example where traffic lighting is being applied to a Breakdown of Headcount by Organization Hierarchy. As shown in the previous screenshot, the visual items consist of the groupings: Operations, Sales, Finance, and more.

    Rule TypeDescriptionExplanation
    Metric valueThe metric value for each visual item is compared to a target value.

    Rule: If the metric value is less than 250, traffic light as Bad.

    For example, the Headcount for Sales is compared to the target value of 250 in the selected period. If the Headcount value for Sales is less than 250, then the visual item will be highlighted in red.

    Change in metric valueThe metric value for each visual item in the selected time period is compared to the metric value from a previous time period.

    Rule: If the change from February 2020 is less than 5%, traffic light as Good.

    For example, the Headcount for Marketing is compared to the Headcount for Marketing in February 2020. If the percentage change from the previous time period is less than 5%, then the visual item will be highlighted in green.

    Difference from groupThe metric value for each visual item is compared to the metric value of another population.

    Rule: If the difference from Women is greater than 20%, traffic light as Bad.

    For example, the Headcount for Marketing is compared to the Headcount for Women in Marketing. If the percentage change from the other population is greater than 20%, then the visual item will be highlighted in red.

    Difference from another metricThe metric value for each visual item is compared to another metric.

    Rule: If the difference from Employee Exit Count is greater than 500%, traffic light as Bad.

    For example, the Headcount for Finance is compared to the Employee Exit Count for Finance. If the percentage change from the other metric is greater than 500%, then the visual item will be highlighted in red.

    Difference from metric overallThe metric value for each visual item is compared to the overall value of another metric.

    Rule: If the difference from Employee Exit Count is greater than 200%, traffic light as Concerning.

    For example, the Headcount for Finance is compared to the Employee Exit Count for the entire organization. If the percentage change from the overall value of the other metric is greater than 200%, then the visual item will be highlighted in amber.

    For more information about the percentage change calculation, see How the difference between metric values is calculated.

  4. Depending on the rule type you selected, do the following:
    RuleDo this
    Metric valueSkip to step 5.
    Change in metric value
    1. Click Select a time period.
    2. Select one of the preset options or click Add time period to define a custom time period.
    Difference from group
    1. Click Select a group.
    2. In the Filter picker, select the attribute values that describe the population you want to compare for the traffic light, and then click Apply > Done.
    3. Optional: Add additional filters to refine the population by clicking the group that you added.
    Difference from another metric
    1. Click Select a metric.
    2. In the Metric picker, select the metric you want to compare for the traffic light.
    Difference from metric overall
    1. Click Select a metric.
    2. In the Metric picker, select the metric you want to compare for the traffic light.
    3. Optional: Click Add filter to refine the population of the comparison metric.

    Note: The analysis context for your visual (filters, assumptions, and security permissions) will also be applied to the comparison metric. If any part of the analysis context cannot be applied to the comparison metric, you'll see the Some filters don't apply note in the Insights tab of the Info panel. Expand the note and click Inspect context to find out what parts of the analysis context has been applied to the comparison metric.

  5. Define the conditional expression under Is in the Rule panel. Select the condition and then type the target value. For example, Less than 50, Between 40% and 50%, or Greater than 20%.

    Note: For the Between conditional expression, the lower limit value is included and the upper limit value is excluded.

  6. Set the traffic light color for the rule under Traffic light as:
    • Bad: If the metric value meets the rule, the visual item will be highlighted in red.
    • Concerning: If the metric value meets the rule, the visual item will be highlighted in amber.
    • Good: If the metric value meets the rule, the visual item will be highlighted in green.
  7. Click Create.
  8. Repeat steps 2 to 7 to add additional rules.

For more information about how traffic light rules are evaluated, see Traffic Lighting Examples.

How traffic lighting rules are evaluated

The traffic lighting rules are evaluated in the order they appear in the Info panel from top to bottom. Once a rule is met, the remaining rules are not evaluated.

For example, you applied the following traffic lighting rules to the Breakdown of Headcount grouped by Organization Hierarchy:

  1. Metric value is greater than or equal to 250. Traffic light as Concerning.
  2. Metric value is greater than 500. Traffic light as Good.
  3. Metric value is less than 250. Traffic light as Bad.

As shown in the following illustration, the headcount for Operations is 550 and its metric value is highlighted as concerning (amber) and not good (green).

In this case, the headcount for Operations meets the first condition, so the remaining rules are not evaluated. To put your traffic lighting rules in the correct order, see Reorder Traffic Lighting Rules.

How the difference between metric values is calculated

When comparing metric values using percentages, the relative difference is calculated by subtracting the primary (reference) metric from the secondary (comparison) metric, and then dividing the difference by the secondary metric.

For example, you want to compare the overall Turnover Rate to the Turnover Rate for women, where:

  • The overall Turnover Rate is 10.0% (primary metric)
  • The Turnover Rate for Women is 30.0% (secondary metric)

The relative difference or percentage change is calculated as follows:

This formula is also used when evaluating the conditional rules for analysis email delivery and traffic lighting.